package TraLaLa.Cliente.ClienteAdmin;

import java.rmi.RemoteException;

import TraLaLa.Cliente.ServiceLocator;
import TraLaLa.Servidor.ServiceFacadeAdmin;
import TraLaLa.Servidor.GestorCanciones.Cancion;

public class AdminControler {
	private ServiceFacadeAdmin serviceFacade;
	
	public AdminControler(String[] args)
	{
		ServiceLocator serv= new ServiceLocator();
		serv.setService(args);
		serviceFacade= serv.getAdminService();
	}

	
    public void anyadirCancion(Cancion cancion) throws RemoteException {
    	serviceFacade.anyadirCancion(cancion);
    }
    public void eliminarCancion(Cancion cancion) throws RemoteException {
    	serviceFacade.eliminarCancion(cancion);
    }
    public void cambiarPrecioCancion(Cancion cancion, double precio) throws RemoteException {
    	serviceFacade.cambiarPrecioCancion(cancion, precio);
    }
    public void mostrarAdministrador(){
    	serviceFacade.mostrarAdministrador();
    }
}
